package com.ruoyi.weixin.juc2;

import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.List;

/**
 * @Description: TODO
 * @Author ONESTAR
 * @Date: 2021/12/24 15:13
 * @Version 1.0
 */
public class TestSimpleFormat {

    public static void main(String [] args){
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//        String [] dateStringArray=new String[]{"2000-01-01","2000-01-02","2000-01-03","2000-01-04",
//                "2000-01-05","2000-01-06","2000-01-07","2000-01-08","2000-01-01","2000-01-09","2000-01-10"
//        };
//        MyThread[] tharray=new MyThread[10];
//        for(int i=0;i<10;i++){
//            tharray[i]=new MyThread(sdf,dateStringArray[i]);
//        }
//        for(int i=0;i<10;i++){
//            tharray[i].start();
//        }


        String[] array = {"aaaa", "bbbb", "cccc"};
        List<String> list = Arrays.asList(array);

        //Java 7
        for(String s:list){
            System.out.println(s);
        }

        //Java 8
        list.forEach(System.out::println);


    }

}
